import {createRouter,createWebHashHistory,RouteRecordRaw} from 'vue-router'
import Layout from '../layout/index.vue'
import NotFound from  '../views/NotFound/index.vue'


const routes:RouteRecordRaw[] = [
    {
        path:'/',
        component:Layout
    },
    {
        path:'/login',
        component:()=>import('../views/login/index.vue')
    },

    { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
]

const router = createRouter({
    history:createWebHashHistory(),
    routes,
})

export default router



